//
//  BaseClassViewController.m
//  NewMusic
//
//  Created by dllo on 15/11/11.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "BaseClassViewController.h"

@interface BaseClassViewController ()
@property (nonatomic, retain)UIActivityIndicatorView *activityView;
@end

@implementation BaseClassViewController
- (void)dealloc{
    [_activityView release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:[[NSBundle mainBundle] pathForResource:@"backGroud" ofType:@"jpg"]]];
    
}
- (UIActivityIndicatorView *)activityView
{
    if (nil == _activityView)
    {
        self.activityView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(315 / 2, 607 / 2, 60, 60)];
        self.activityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
        [self.activityView startAnimating];
        [_activityView release];
    }
    return _activityView;
}
- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"changeControllerView" object:self userInfo:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
